Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Huak's Task Table #860

Merged
merged 2 commits into from
Nov 21, 2023
Merged

Implement Huak's Task Table #860

merged 2 commits into from
Nov 21, 2023

Conversation

cnpryer
Copy link
Owner

@cnpryer cnpryer commented Nov 19, 2023

Closes #815

[tool.huak.task]
hello-world = "python -c 'print(\"hello, world.\")'"
image

Tested with

[tool.huak.task]
string = "python -c 'print(\"string\")'"
array = ["python", "-c", "print('array')"]
inline-cmd = { cmd = "python -c 'print(\"cmd\")'" }
inline-args = { args = ["python", "-c", "print('args')"] }
inline-program = { program = "python", args = ["-c", "print('program')"] }

TODO(future):

  • improve error messaging
  • sub-tasks
  • array of tables

@cnpryer cnpryer force-pushed the run branch 9 times, most recently from 22d7ab8 to 051ab46 Compare November 19, 2023 21:01
@cnpryer
Copy link
Owner Author

cnpryer commented Nov 19, 2023

Might reconsider name of table to avoid confusion with https://peps.python.org/pep-0723/

@cnpryer cnpryer force-pushed the run branch 10 times, most recently from b66d017 to 8188e80 Compare November 20, 2023 00:29
@cnpryer cnpryer changed the title Implement Huak's run table Implement Huak's Task Table Nov 20, 2023
@cnpryer cnpryer force-pushed the run branch 9 times, most recently from d8d8ad4 to 2a59e6d Compare November 20, 2023 17:46
@cnpryer cnpryer force-pushed the run branch 12 times, most recently from 9603657 to 68470f3 Compare November 21, 2023 00:59
@cnpryer cnpryer marked this pull request as ready for review November 21, 2023 00:59
@cnpryer cnpryer force-pushed the run branch 7 times, most recently from 475b921 to 00f1d72 Compare November 21, 2023 03:34
pyproject.toml Outdated Show resolved Hide resolved
@cnpryer cnpryer merged commit 4ef2ca7 into master Nov 21, 2023
7 checks passed
@cnpryer cnpryer deleted the run branch November 21, 2023 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run tasks using the run command
1 participant